import request from "@/utils/request";

function download(file_name) {
    return request({
        method: 'GET',
        url: `/file/download/${file_name}`,
        responseType:Blob
    });
}

function upload() {
    return request({
        method: 'POST',
        url: '/file/upload',
        data: {

        }
    });
}

export default {
    download,
    upload,
}